import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_wechat/core/language/languages.dart';
import 'package:flutter_wechat/core/routes/routes.dart';
import 'package:flutter_wechat/core/theme/themes.dart';
import 'package:get/get.dart';

import 'core/routes/appPages.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return ScreenUtilInit(
      designSize: Size(750, 1334),
      builder: () => GetMaterialApp(
        //debugShowCheckedModeBanner: false,
        initialRoute: Routes.INITIAL,
        theme: Get.isDarkMode ? Themes().dark() : Themes().light(),
        defaultTransition: Transition.fade,
        //initialBinding: SplashBinding(),
        getPages: AppPages.pages,
        translations: Languages(),
        locale: Locale("zh", "CN"),
        fallbackLocale: Locale("zh", "CN"),
        //home: SplashPage(),
      ),
    );
  }
}
